import java.util.Scanner;

public class Jc {
	public static void main(String[] args) {
		 int x;
		 x=jieCheng(5);
		System.out.println(x);
		 int c;
		 c=jieCheng(6);
		System.out.println(c);
	}
	public static int jieCheng(int n){
		 int s=1;
			for(int i=1;i<=n;i++)
				s=s*i;
			return s;
		
	}
	
		}


